Optimal. Leaf size=252 \[ \frac {a \left (a^2 (2 A+C)+b^2 (3 A+4 C)\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a+b}}\right )}{(a-b)^{7/2} (a+b)^{7/2} d}-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {a \left (5 A b^2-a^2 C+6 b^2 C\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^2}+\frac {\left (a^4 C-2 b^4 (2 A+3 C)-a^2 b^2 (11 A+10 C)\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^3 d (a+b \sec (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.41, antiderivative size = 252, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {4166, 4088, 12,
3916, 2738, 214} \begin {gather*} \frac {a \left (a^2 (2 A+C)+b^2 (3 A+4 C)\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a+b}}\right )}{d (a-b)^{7/2} (a+b)^{7/2}}-\frac {a \left (a^2 (-C)+5 A b^2+6 b^2 C\right ) \tan (c+d x)}{6 b d \left (a^2-b^2\right )^2 (a+b \sec (c+d x))^2}-\frac {\left (a^2 C+A b^2\right ) \tan (c+d x)}{3 b d \left (a^2-b^2\right ) (a+b \sec (c+d x))^3}+\frac {\left (a^4 C-a^2 b^2 (11 A+10 C)-2 b^4 (2 A+3 C)\right ) \tan (c+d x)}{6 b d \left (a^2-b^2\right )^3 (a+b \sec (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 214
Rule 2738
Rule 3916
Rule 4088
Rule 4166
Rubi steps
\begin {align*} \int \frac {\sec (c+d x) \left (A+C \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^4} \, dx &=-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {\int \frac {\sec (c+d x) \left (-3 a b (A+C)+\left (2 A b^2-a^2 C+3 b^2 C\right ) \sec (c+d x)\right )}{(a+b \sec (c+d x))^3} \, dx}{3 b \left (a^2-b^2\right )}\\ &=-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {a \left (5 A b^2-a^2 C+6 b^2 C\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^2}+\frac {\int \frac {\sec (c+d x) \left (2 \left (b^3 (2 A+3 C)+\frac {1}{2} a^2 (6 A b+4 b C)\right )-a \left (5 A b^2-\left (a^2-6 b^2\right ) C\right ) \sec (c+d x)\right )}{(a+b \sec (c+d x))^2} \, dx}{6 b \left (a^2-b^2\right )^2}\\ &=-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {a \left (5 A b^2-a^2 C+6 b^2 C\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^2}+\frac {\left (a^4 C-2 b^4 (2 A+3 C)-a^2 b^2 (11 A+10 C)\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^3 d (a+b \sec (c+d x))}-\frac {\int -\frac {3 a b \left (a^2 (2 A+C)+b^2 (3 A+4 C)\right ) \sec (c+d x)}{a+b \sec (c+d x)} \, dx}{6 b \left (a^2-b^2\right )^3}\\ &=-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {a \left (5 A b^2-a^2 C+6 b^2 C\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^2}+\frac {\left (a^4 C-2 b^4 (2 A+3 C)-a^2 b^2 (11 A+10 C)\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^3 d (a+b \sec (c+d x))}+\frac {\left (a \left (a^2 (2 A+C)+b^2 (3 A+4 C)\right )\right ) \int \frac {\sec (c+d x)}{a+b \sec (c+d x)} \, dx}{2 \left (a^2-b^2\right )^3}\\ &=-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {a \left (5 A b^2-a^2 C+6 b^2 C\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^2}+\frac {\left (a^4 C-2 b^4 (2 A+3 C)-a^2 b^2 (11 A+10 C)\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^3 d (a+b \sec (c+d x))}+\frac {\left (a \left (a^2 (2 A+C)+b^2 (3 A+4 C)\right )\right ) \int \frac {1}{1+\frac {a \cos (c+d x)}{b}} \, dx}{2 b \left (a^2-b^2\right )^3}\\ &=-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {a \left (5 A b^2-a^2 C+6 b^2 C\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^2}+\frac {\left (a^4 C-2 b^4 (2 A+3 C)-a^2 b^2 (11 A+10 C)\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^3 d (a+b \sec (c+d x))}+\frac {\left (a \left (a^2 (2 A+C)+b^2 (3 A+4 C)\right )\right ) \text {Subst}\left (\int \frac {1}{1+\frac {a}{b}+\left (1-\frac {a}{b}\right ) x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{b \left (a^2-b^2\right )^3 d}\\ &=\frac {a \left (2 a^2 A+3 A b^2+a^2 C+4 b^2 C\right ) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a+b}}\right )}{(a-b)^{7/2} (a+b)^{7/2} d}-\frac {\left (A b^2+a^2 C\right ) \tan (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^3}-\frac {a \left (5 A b^2-a^2 C+6 b^2 C\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^2}+\frac {\left (a^4 C-2 b^4 (2 A+3 C)-a^2 b^2 (11 A+10 C)\right ) \tan (c+d x)}{6 b \left (a^2-b^2\right )^3 d (a+b \sec (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 6.74, size = 438, normalized size = 1.74 \begin {gather*} \frac {(b+a \cos (c+d x)) \sec ^2(c+d x) \left (A+C \sec ^2(c+d x)\right ) \left (-\frac {6 i a \left (a^2 (2 A+C)+b^2 (3 A+4 C)\right ) \text {ArcTan}\left (\frac {(i \cos (c)+\sin (c)) \left (a \sin (c)+(-b+a \cos (c)) \tan \left (\frac {d x}{2}\right )\right )}{\sqrt {a^2-b^2} \sqrt {(\cos (c)-i \sin (c))^2}}\right ) (b+a \cos (c+d x))^3 (\cos (c)-i \sin (c))}{\left (a^2-b^2\right )^{7/2} \sqrt {(\cos (c)-i \sin (c))^2}}+\frac {2 b \left (A b^2+a^2 C\right ) \sec (c) (b \sin (c)-a \sin (d x))}{a^5-a^3 b^2}+\frac {(b+a \cos (c+d x)) \sec (c) \left (\left (-11 a^2 A b^3+6 A b^5-5 a^4 b C\right ) \sin (c)+a \left (-4 A b^4+3 a^4 C+a^2 b^2 (9 A+2 C)\right ) \sin (d x)\right )}{a^3 \left (a^2-b^2\right )^2}+\frac {(b+a \cos (c+d x))^2 \sec (c) \left (3 \left (-6 a^2 A b^4+2 A b^6+a^6 C+a^4 b^2 (9 A+4 C)\right ) \sin (c)-a b \left (2 A b^4+a^2 b^2 (-5 A+2 C)+a^4 (18 A+13 C)\right ) \sin (d x)\right )}{\left (a^3-a b^2\right )^3}\right )}{3 d (A+2 C+A \cos (2 (c+d x))) (a+b \sec (c+d x))^4} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.52, size = 373, normalized size = 1.48
method | result | size |
derivativedivides | \(\frac {-\frac {2 \left (-\frac {\left (6 A \,a^{2} b +3 a A \,b^{2}+2 A \,b^{3}+a^{3} C +6 a^{2} b C +2 C \,b^{2} a +2 C \,b^{3}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 \left (a -b \right ) \left (a^{3}+3 a^{2} b +3 b^{2} a +b^{3}\right )}+\frac {2 \left (9 A \,a^{2}+A \,b^{2}+7 a^{2} C +3 b^{2} C \right ) b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 \left (a^{2}+2 a b +b^{2}\right ) \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (6 A \,a^{2} b -3 a A \,b^{2}+2 A \,b^{3}-a^{3} C +6 a^{2} b C -2 C \,b^{2} a +2 C \,b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 \left (a +b \right ) \left (a^{3}-3 a^{2} b +3 b^{2} a -b^{3}\right )}\right )}{\left (a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-b \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-a -b \right )^{3}}+\frac {a \left (2 A \,a^{2}+3 A \,b^{2}+a^{2} C +4 b^{2} C \right ) \arctanh \left (\frac {\left (a -b \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (a +b \right ) \left (a -b \right )}}\right )}{\left (a^{6}-3 a^{4} b^{2}+3 a^{2} b^{4}-b^{6}\right ) \sqrt {\left (a +b \right ) \left (a -b \right )}}}{d}\) | \(373\) |
default | \(\frac {-\frac {2 \left (-\frac {\left (6 A \,a^{2} b +3 a A \,b^{2}+2 A \,b^{3}+a^{3} C +6 a^{2} b C +2 C \,b^{2} a +2 C \,b^{3}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 \left (a -b \right ) \left (a^{3}+3 a^{2} b +3 b^{2} a +b^{3}\right )}+\frac {2 \left (9 A \,a^{2}+A \,b^{2}+7 a^{2} C +3 b^{2} C \right ) b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 \left (a^{2}+2 a b +b^{2}\right ) \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (6 A \,a^{2} b -3 a A \,b^{2}+2 A \,b^{3}-a^{3} C +6 a^{2} b C -2 C \,b^{2} a +2 C \,b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 \left (a +b \right ) \left (a^{3}-3 a^{2} b +3 b^{2} a -b^{3}\right )}\right )}{\left (a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-b \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-a -b \right )^{3}}+\frac {a \left (2 A \,a^{2}+3 A \,b^{2}+a^{2} C +4 b^{2} C \right ) \arctanh \left (\frac {\left (a -b \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (a +b \right ) \left (a -b \right )}}\right )}{\left (a^{6}-3 a^{4} b^{2}+3 a^{2} b^{4}-b^{6}\right ) \sqrt {\left (a +b \right ) \left (a -b \right )}}}{d}\) | \(373\) |
risch | \(\text {Expression too large to display}\) | \(1311\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 528 vs.
\(2 (236) = 472\).
time = 3.04, size = 1114, normalized size = 4.42 \begin {gather*} \left [-\frac {3 \, {\left ({\left (2 \, A + C\right )} a^{3} b^{3} + {\left (3 \, A + 4 \, C\right )} a b^{5} + {\left ({\left (2 \, A + C\right )} a^{6} + {\left (3 \, A + 4 \, C\right )} a^{4} b^{2}\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left ({\left (2 \, A + C\right )} a^{5} b + {\left (3 \, A + 4 \, C\right )} a^{3} b^{3}\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left ({\left (2 \, A + C\right )} a^{4} b^{2} + {\left (3 \, A + 4 \, C\right )} a^{2} b^{4}\right )} \cos \left (d x + c\right )\right )} \sqrt {a^{2} - b^{2}} \log \left (\frac {2 \, a b \cos \left (d x + c\right ) - {\left (a^{2} - 2 \, b^{2}\right )} \cos \left (d x + c\right )^{2} - 2 \, \sqrt {a^{2} - b^{2}} {\left (b \cos \left (d x + c\right ) + a\right )} \sin \left (d x + c\right ) + 2 \, a^{2} - b^{2}}{a^{2} \cos \left (d x + c\right )^{2} + 2 \, a b \cos \left (d x + c\right ) + b^{2}}\right ) - 2 \, {\left (C a^{6} b - 11 \, {\left (A + C\right )} a^{4} b^{3} + {\left (7 \, A + 4 \, C\right )} a^{2} b^{5} + 2 \, {\left (2 \, A + 3 \, C\right )} b^{7} - {\left ({\left (18 \, A + 13 \, C\right )} a^{6} b - {\left (23 \, A + 11 \, C\right )} a^{4} b^{3} + {\left (7 \, A - 2 \, C\right )} a^{2} b^{5} - 2 \, A b^{7}\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (C a^{7} - {\left (9 \, A + 10 \, C\right )} a^{5} b^{2} + {\left (8 \, A + 7 \, C\right )} a^{3} b^{4} + {\left (A + 2 \, C\right )} a b^{6}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{12 \, {\left ({\left (a^{11} - 4 \, a^{9} b^{2} + 6 \, a^{7} b^{4} - 4 \, a^{5} b^{6} + a^{3} b^{8}\right )} d \cos \left (d x + c\right )^{3} + 3 \, {\left (a^{10} b - 4 \, a^{8} b^{3} + 6 \, a^{6} b^{5} - 4 \, a^{4} b^{7} + a^{2} b^{9}\right )} d \cos \left (d x + c\right )^{2} + 3 \, {\left (a^{9} b^{2} - 4 \, a^{7} b^{4} + 6 \, a^{5} b^{6} - 4 \, a^{3} b^{8} + a b^{10}\right )} d \cos \left (d x + c\right ) + {\left (a^{8} b^{3} - 4 \, a^{6} b^{5} + 6 \, a^{4} b^{7} - 4 \, a^{2} b^{9} + b^{11}\right )} d\right )}}, \frac {3 \, {\left ({\left (2 \, A + C\right )} a^{3} b^{3} + {\left (3 \, A + 4 \, C\right )} a b^{5} + {\left ({\left (2 \, A + C\right )} a^{6} + {\left (3 \, A + 4 \, C\right )} a^{4} b^{2}\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left ({\left (2 \, A + C\right )} a^{5} b + {\left (3 \, A + 4 \, C\right )} a^{3} b^{3}\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left ({\left (2 \, A + C\right )} a^{4} b^{2} + {\left (3 \, A + 4 \, C\right )} a^{2} b^{4}\right )} \cos \left (d x + c\right )\right )} \sqrt {-a^{2} + b^{2}} \arctan \left (-\frac {\sqrt {-a^{2} + b^{2}} {\left (b \cos \left (d x + c\right ) + a\right )}}{{\left (a^{2} - b^{2}\right )} \sin \left (d x + c\right )}\right ) + {\left (C a^{6} b - 11 \, {\left (A + C\right )} a^{4} b^{3} + {\left (7 \, A + 4 \, C\right )} a^{2} b^{5} + 2 \, {\left (2 \, A + 3 \, C\right )} b^{7} - {\left ({\left (18 \, A + 13 \, C\right )} a^{6} b - {\left (23 \, A + 11 \, C\right )} a^{4} b^{3} + {\left (7 \, A - 2 \, C\right )} a^{2} b^{5} - 2 \, A b^{7}\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (C a^{7} - {\left (9 \, A + 10 \, C\right )} a^{5} b^{2} + {\left (8 \, A + 7 \, C\right )} a^{3} b^{4} + {\left (A + 2 \, C\right )} a b^{6}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{6 \, {\left ({\left (a^{11} - 4 \, a^{9} b^{2} + 6 \, a^{7} b^{4} - 4 \, a^{5} b^{6} + a^{3} b^{8}\right )} d \cos \left (d x + c\right )^{3} + 3 \, {\left (a^{10} b - 4 \, a^{8} b^{3} + 6 \, a^{6} b^{5} - 4 \, a^{4} b^{7} + a^{2} b^{9}\right )} d \cos \left (d x + c\right )^{2} + 3 \, {\left (a^{9} b^{2} - 4 \, a^{7} b^{4} + 6 \, a^{5} b^{6} - 4 \, a^{3} b^{8} + a b^{10}\right )} d \cos \left (d x + c\right ) + {\left (a^{8} b^{3} - 4 \, a^{6} b^{5} + 6 \, a^{4} b^{7} - 4 \, a^{2} b^{9} + b^{11}\right )} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (A + C \sec ^{2}{\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{4}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 693 vs.
\(2 (236) = 472\).
time = 0.53, size = 693, normalized size = 2.75 \begin {gather*} -\frac {\frac {3 \, {\left (2 \, A a^{3} + C a^{3} + 3 \, A a b^{2} + 4 \, C a b^{2}\right )} {\left (\pi \left \lfloor \frac {d x + c}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, a - 2 \, b\right ) + \arctan \left (\frac {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\sqrt {-a^{2} + b^{2}}}\right )\right )}}{{\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}\right )} \sqrt {-a^{2} + b^{2}}} - \frac {3 \, C a^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 18 \, A a^{4} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 12 \, C a^{4} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 27 \, A a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 27 \, C a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 6 \, A a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 12 \, C a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 3 \, A a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 6 \, C a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 6 \, A b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 6 \, C b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 36 \, A a^{4} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 28 \, C a^{4} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 32 \, A a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 16 \, C a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 4 \, A b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 12 \, C b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 3 \, C a^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 18 \, A a^{4} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 12 \, C a^{4} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 27 \, A a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 27 \, C a^{3} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 6 \, A a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 12 \, C a^{2} b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3 \, A a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 6 \, C a b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 6 \, A b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 6 \, C b^{5} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}\right )} {\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a - b\right )}^{3}}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.34, size = 483, normalized size = 1.92 \begin {gather*} -\frac {\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (2\,A\,b^3+C\,a^3+2\,C\,b^3+3\,A\,a\,b^2+6\,A\,a^2\,b+2\,C\,a\,b^2+6\,C\,a^2\,b\right )}{{\left (a+b\right )}^3\,\left (a-b\right )}-\frac {4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (A\,b^3+3\,C\,b^3+9\,A\,a^2\,b+7\,C\,a^2\,b\right )}{3\,{\left (a+b\right )}^2\,\left (a^2-2\,a\,b+b^2\right )}+\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (2\,A\,b^3-C\,a^3+2\,C\,b^3-3\,A\,a\,b^2+6\,A\,a^2\,b-2\,C\,a\,b^2+6\,C\,a^2\,b\right )}{\left (a+b\right )\,\left (a^3-3\,a^2\,b+3\,a\,b^2-b^3\right )}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (-3\,a^3-3\,a^2\,b+3\,a\,b^2+3\,b^3\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (-3\,a^3+3\,a^2\,b+3\,a\,b^2-3\,b^3\right )+3\,a\,b^2+3\,a^2\,b+a^3+b^3-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,\left (a^3-3\,a^2\,b+3\,a\,b^2-b^3\right )\right )}-\frac {a\,\mathrm {atan}\left (\frac {1{}\mathrm {i}\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^4-4{}\mathrm {i}\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^3\,b+6{}\mathrm {i}\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a^2\,b^2-4{}\mathrm {i}\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,a\,b^3+1{}\mathrm {i}\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,b^4}{\sqrt {a+b}\,{\left (a-b\right )}^{7/2}}\right )\,\left (2\,A\,a^2+3\,A\,b^2+C\,a^2+4\,C\,b^2\right )\,1{}\mathrm {i}}{d\,{\left (a+b\right )}^{7/2}\,{\left (a-b\right )}^{7/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________